import { Component } from 'react'
import SuitHoc from './Suit'

@SuitHoc  //装饰器语法
class Normal extends Component {
    state = {
        name:'一个平平无奇的组件'
    }
    render() {
        return(
            <fieldset>
                <legend>普通组件</legend>
                <h1>武器:{this.props.weapon ?? '破木剑'}</h1>
                <h1>大招:{this.props.skill ?? '空手接白刃'}</h1>
                <h1>外号:{this.props.nickname ?? '废材小杜'}</h1>
            </fieldset>
        )
    }
}
export default Normal
